import requests

# 请求的 URL
# url = "http://127.0.0.1:5000/process_date"
url = "https://hmii.ecovacs-c.com/process_date"
# 请求的数据，以 JSON 格式发送
data = {
    "year": "2025",
    "month": "01",
    "day": "19"
}

try:
    # 发送 POST 请求
    response = requests.post(url, json=data)
    # 检查响应状态码
    if response.status_code == 200:
        print("请求成功，响应内容：")
        print(response.json())
    else:
        print(f"请求失败，状态码：{response.status_code}，错误信息：{response.text}")
except requests.RequestException as e:
    print(f"请求发生异常：{e}")
